package ru.len.cafe.ejb.dao;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import ru.len.cafe.entity.model.IngType;

@Stateless
public class IngTypeDao {

    @PersistenceContext(unitName="LenCafePU")
    EntityManager em;
    
    public void createOrder(IngType ingType){
	em.persist(ingType);
    }
    
    public void deleteOrder(IngType ingType){
	em.remove(ingType);
    }
    
    public void updateOrder(IngType ingType){
	em.refresh(ingType);
    }
    
}
